package ModelLag;


/**
 * The Person class creates an object of the type Person.
 * 
 * @author (Lackshan, Mikkel, Nick, patrick, Simon, Yousef) 
 * @project (Tema design)
 * @version (2014.11.04)
 */
public class Person
{
    private String name, address, zip, city, phone;
    
    /**
     * Constructor for objects of class Person.
     * 
     * @param n is the user input for the name of a person.
     * @param a is the user input for the address of a person.
     * @param z is the user input for the zip of a person.
     * @param c is the user input for the city of a person.
     * @param p is the user input for the phone of a person.
     */

    public Person(String n, String a, String z, String c, String p){
        name = n;
        address = a;
        zip = z;
        city = c;
        phone = p;
    }

    /**
     * Sets the name for the Person.
     * 
     * @param n is the user input for the name of a person.
     */
    public void setName(String n){
        name = n;
    }
    
    /**
     * Sets the address for the Person.
     * 
     * @param a is the user input for the address of a person.
     */
    public void setAddress(String a){
        address = a;
    }
    
    /**
     * Sets the zip for the Person.
     * 
     * @param z is the user input for the Zip of a person.
     */
    public void setZip(String z){
        zip = z;
    }
    
    /**
     * Sets the city for the Person.
     * 
     * @param c is the user input for the city of a person.
     */
    public void setCity(String c){
        city = c;
    }
    
    /**
     * Sets the phone for the Person.
     * 
     * @param p is the user input for the phone of a person.
     */
    public void setPhone(String p){
        phone = p;
    }
    
    /**
     * Returns the name for the Person.
     * 
     * @param returns the name of the person
     */
    public String getName(){
        return name;
    }
    
    /**
     * Returns the address for the Person.
     * 
     * @param returns the address of the person
     */
    public String getAddress(){
        return address;
    }
    
    /**
     * Returns the zip for the Person.
     * 
     * @param returns the zip of the person
     */
    public String getZip(){
        return zip;
    }
    
    /**
     * Returns the city for the Person.
     * 
     * @param returns the city of the person
     */
    public String getCity(){
        return city;
    }
    
    /**
     * Returns the phone for the Person.
     * 
     * @param returns the phone of the person
     */
    public String getPhone(){
        return phone;
    }
}
